//
//  InventoryCell.m
//  HAODE
//
//  Created by panquanReabam.com on 16/5/23.
//  Copyright © 2016年 reabam.com. All rights reserved.
//

#import "InventoryCell.h"

@implementation InventoryCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        [self createView];
       
    }
    
    return self;
    
}
-(void)createView
{

    [super awakeFromNib];
    self.imagebtn=[[UIImageView alloc]init];
    [self.imagebtn.layer setCornerRadius:2.0];
    [self.imagebtn.layer setBorderWidth:0.3];
    [self.imagebtn.layer setMasksToBounds:YES];
    CGColorSpaceRef colorSpace2 = CGColorSpaceCreateDeviceRGB();
    CGColorRef colorref2 = CGColorCreate(colorSpace2,(CGFloat[]){ 0, 0, 0, 0.3 });
    [self.imagebtn.layer setBorderColor:colorref2];//边框颜色
    self.imagebtn.frame=CGRectMake(15,  25,  85, 85);
    [self addSubview: self.imagebtn];
    self.createDate=[[UILabel alloc]init];
    self.createDate.font=[UIFont systemFontOfSize:14];
    self.createDate.textColor=[UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1];
    self.createDate.frame=CGRectMake(110, 17.5, 520*ScreenWidth/750,32);
    self.createDate.numberOfLines=0;
    [self addSubview: self.createDate];
    self.priceLabel=[[UILabel alloc]initWithFrame:CGRectMake(110, self.createDate.bottom, 400*ScreenWidth/750,12)];
    self.priceLabel.font=[UIFont systemFontOfSize:12];
    self.priceLabel.textColor=zhonghuiColor;
    [self addSubview: self.priceLabel];
    self.howLabel=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-180, 70, 165, 35)];
    self.howLabel.textColor=qianheiColor;
     self.howLabel.textAlignment=NSTextAlignmentCenter;
     self.howLabel.font=[UIFont systemFontOfSize:16];
    [self addSubview: self.howLabel];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
